﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Microsoft.SharePoint;

namespace SlamCms.SharePoint.Migration
{
	public class MigratableFeature : IMigratable
	{
		#region Properties
		public string Id { get; set; }
		#endregion

		#region Serlialization

		public XElement ToXml()
		{
			XElement node = new XElement("Feature");
			node.Add(new XAttribute("Id", Id));
			return node;
		}

		public void FromXml(XElement element)
		{
			this.Id = element.Attribute("Id").Value;
		}
		
		#endregion
	}
}
